<?php
$id=$_REQUEST['id'];
$sql="SELECT * FROM dp_news WHERE id='$id'";
$sp=$dp->QueryOne($sql);
?>
<form action="index.php?option=thongbao&cat=xuly" method="post" enctype="multipart/form-data" name="form1">
	<input name="id" type="hidden" value="<?php echo $id; ?>"/>
  <table width="100%" border="1" cellspacing="5" cellpadding="5">
    <tr>
       <td colspan="2" align="center" valign="middle" bgcolor="#FFFFFF"><strong><h1>Cập nhật thông báo</h1></strong></td>
    </tr>
    <tr>
      <td width="200"  align="center" align="right" valign="middle">Tên Thông báo</td>
      <td align="left" valign="middle"><label for="title"></label>
      <input name="title" type="text" value="<?php echo $sp['title']; ?>" size="50"></td>
    </tr>
	<tr>
      <td width="200"  align="center" align="right" valign="middle">Tóm tắt</td>
      <td align="left" valign="middle"><label for="summany"></label>
      <input class="ckeditor" rows="5" cols="45" name="summany" type="text" value="<?php echo $sp['summany']; ?>" size="50"></td>
    </tr>
    <tr>
      <td width="200"  align="center" align="right" valign="middle">Chi tiết </td>
      <td align="left" valign="middle"><label for="content"></label>
      <textarea id="content" class="ckeditor" rows="5" cols="45" name="content" style="width: 758px; height: 222px;">
      <?php echo $sp['content']; ?>
      </textarea></td>
    </tr>

    <tr>
      <td width="200"  align="center" align="right" valign="middle">Hình ảnh</td>
      <td align="left" valign="middle"><label for="image"></label>
      <input type="file" name="image" id="image"></td>
    </tr>
	 <tr>
      <td width="200"  align="center" align="right" valign="middle"> file Đính kèm</td>
      <td align="left" valign="middle"><label for="linkfile"></label>
      <input type="file" name="linkfile" id="linkfile"></td>
    </tr>
   
    <tr>
      <td width="200"  align="center" align="right" valign="middle">Trạng thái</td>
      <td align="left" valign="middle">
      <select name="states" id="states">
        <option value="0">Ẩn </option>
        <option value="1">Hiện</option>
      </select></td>
    </tr>
    <tr>
      <td width="200"  align="center" align="right" valign="middle">&nbsp;</td>
      <td align="left" valign="middle"><input type="submit" name="CAPNHAT" id="CAPNHAT" value=" CẬP NHẬT   "></td>
    </tr>
  </table>
</form>
